package com.flex.mobile.service;

import java.util.List;

import com.flex.mobile.model.TaxiOrder;

public interface TaxiOrderService {
   public TaxiOrder createTaxiOrder(TaxiOrder order);
   public long applyTaxiOrder(List<Number> orderIds, long driverId);
   public TaxiOrder confirmTaxiOrder(TaxiOrder order);
   
   /**
    * 查询司机可以接受的实时订单
    * 暂定最多返回5条记录
    */
   public List<TaxiOrder> findRealTimeTaxiOrdersByDriver(long driverId);
   /**
    * 查询司机可以接受的预约订单
    * 暂定最多返回5条记录
    */
   public List<TaxiOrder> findReserveTaxiOrdersByDriver(long driverId);
   /**
    * 查询司机已经接受，并且生效的订单
    */
   public List<TaxiOrder> findActiveTaxiOrdersByDriver(long driverId);
   
   public List<TaxiOrder> findTaxiOrdersByDriverId(long driverId);
   /**
    * 查询订单详细信息
    */
   public TaxiOrder getTaxiOrderDetail(long orderId);
   
   /**
    * 查询用户订单
    */
   public List<TaxiOrder> findTaxiOrdersByUserId(long userId);
   
   public boolean cancelTaxiOrder(TaxiOrder order);
}
